package model;

public class Cosmetics extends Product {
    private String skinType; // 适用肤质

    public Cosmetics(String pid, String name, double price, String skinType) {
        super(pid, name, price);
        this.skinType = skinType;
    }

    public String getSkinType() { return skinType; }

    @Override
    public String getDescription() {
        return getBasicInfo() + ", 类别:化妆品, 适用肤质:" + skinType;
    }

    public void apply() {
        System.out.println("【" + getName() + "】适合" + skinType + "肤质");
    }
}